package com.mayflygeek.mayflyask.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.mayflygeek.mayflyask.entity.User;
/**
 * @author 蝈蝈 
 * @email guodefu909@126.com
 * @team 蜉蝣极客
 * @link www.mayflygeek.com
 */
public interface UserService {
	
	User saveUser(User user);
	
	void deleteUser(Long id);
	
	void deleteUser(User user);
	
	void deleteUsers(List<User> users);
	
	User updateUser(User user);
	
	int updateUserStatus(Long id,Integer status);
	
	int updateUserPassword(Long id,String password);
	
	User getUser(Long id);
	
	User getByUserName(String userName);

	List<User> getAllUser();

	Page<User> getPageByUserNameNickName(int pageNumber,int pageSize,String userName,String nickName);

	Page<User> getPage(int pageNumber, int pageSize);

	Page<User> getPageByUserNameNickName1(int pageNumber, int pageSize, String userNameParam, String nickNameParam);

	int deleteUserByIds(List<Long> ids);

	int deleteUserByIds(String ids);

}
